package com.ttloner.springboot.service.impl;

import com.ttloner.springboot.mapper.MyUserMapper;
import com.ttloner.springboot.model.MyUser;
import com.ttloner.springboot.service.MyUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author TTLoner
 * @date 2021/7/17 20:06
 * @description
 */
@Service
public class MyUserServiceImpl implements MyUserService {
    @Autowired
    private MyUserMapper mup;
    @Override
    public void insert(MyUser myUser) {
        mup.insert(myUser);
    }

    @Override
    public MyUser selectById(int pid) {
        return mup.selectById(pid);
    }

    @Override
    public List<MyUser> selectAll() {
        return mup.selectAll();
    }

    @Override
    public void update(MyUser myUser) {
        mup.update(myUser);
    }

    @Override
    public void deleteById(int pid) {
        mup.deleteById(pid);
    }
}
